package cn.edu.ctbu.BoostrapTable.repository;

import cn.edu.ctbu.BoostrapTable.domain.Student;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface StudentRepository extends JpaRepository<Student,Integer> {
    /**
     * 分页查找所有
     */
    public Page<Student> findAll(Pageable pageable);


    /**
     * 按名字查询
     */
    List<Student> findByName(String name);

}